package com.gg.admin.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gg.dao.AdminUserMapper;
import com.gg.entity.User;

@Service
public class AdminUserService {
	@Autowired
	private  AdminUserMapper adminUserMapper;
	public  List<User> ShowAllUsers(){
		return adminUserMapper.selectAllUsers();
		
	}
	public void removeUserByUid(String uid) {
		// TODO Auto-generated method stub
		adminUserMapper.deleteUserByUid(uid);
		
		
	}
	public User showUserByUid(String uid) {
		// TODO Auto-generated method stub
		return adminUserMapper.selectUserByUid(uid);
		
	}
	public void changeUserByUid(User user) {
		// TODO Auto-generated method stub
		adminUserMapper.updateUserByUid(user);
	}
	public void addUser(User user) {
		// TODO Auto-generated method stub
		adminUserMapper.insertUser(user);
	}
	
}
